home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / image / stview11.zip / UNPACK.CMD < prev    next >
OS/2 REXX Batch file  |  1996-06-21  |  1KB  |  59 lines

  1. @echo off
  2. rem ==--=StarBar archive extractor batch file=--==
  3. rem        OS/2 CMD
  4. rem
  5. rem ========================================================================
  6. rem
  7. rem first parameter : Path to node-specific temp dir
  8. rem second parameter : Path and File to be examined
  9. rem
  10. rem ========================================================================
  11. rem
  12. rem NOTE: Special Thanks to Steve Monteith who sent through a sample of his
  13. rem       native OS/2 archiver *.CMD file. I could not test this myself,
  14. rem       but it seems to work on his system. You may have to "tweek" it a
  15. rem       bit more, but should serve as a good starting point.
  16.  
  17. cd %1
  18.  
  19. if exist %1\*.arj goto ARJ
  20. if exist %1\*.zip goto ZIP
  21. if exist %1\*.lzh goto LHA
  22. if exist %1\*.rar goto UNRAR
  23. if exist %1\*.arc goto PKUNPAK
  24. if exist %1\*.zoo goto ZOO
  25. if exist %1\*.pak goto PAK
  26.  
  27. rem    Add any other archivers you wish to support here, then follow the
  28. rem    examples below on extracting the info...
  29.  
  30. :ARJ
  31. unarj e %2 *.*
  32. goto end
  33.  
  34. :ZIP
  35. unzip -o -j -C %2 *.*
  36. goto end
  37.  
  38. :LHA
  39. lh x /o %2 *.*
  40. goto end
  41.  
  42. :UNRAR
  43. unrar e %2 *.*
  44. goto end
  45.  
  46. :PKUNPAK
  47. arc2 eo %2 *.*
  48. goto end
  49.  
  50. :ZOO
  51. zoo.exe e %2 *.*
  52. goto end
  53.  
  54. :PAK
  55. pak e/WA %2 *.*
  56. goto end
  57.  
  58. :end
  59.